package com.supreme.commonmybatis.entity.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.supreme.commonmybatis.annotation.RangeQuery;
import com.supreme.commonentity.mysql.primary.MBTest;
import lombok.Data;
import lombok.EqualsAndHashCode;

@RangeQuery(rangeQueryKey = "isRangeQuery", queryValues = "1,3,5")
@EqualsAndHashCode(callSuper = true)
@Data
public class QMBTest extends MBTest {

    @RangeQuery(queryKey = "deptId")
    @JsonIgnore
    @TableField(exist = false)
    private Integer rangeId;

    /**
     * 是否是范围查询
     */
    @JsonIgnore
    @TableField(exist = false)
    private boolean isRangeQuery;
}
